package com.saohuobang.test.model;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * 作者 yaohua.liu
 * 日期 2015-12-15 16:45
 * 说明 ...
 */
public class BusinessInfo {

    /**
     * 业务名称
     */
    private String businessName = "";
    /**
     * port
     */
    private int port = 0;
    /**
     * business properties root directory path
     */
    private String rootDir = "";
    /**
     *配置单元
     */
    List<UnitProperty> properties = Lists.newArrayList();

    public BusinessInfo(String businessName,String rootDir,int port) {
        this.businessName = businessName;
        this.rootDir = rootDir;
        this.port = port;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public String getRootDir() {
        return rootDir;
    }

    public void setRootDir(String rootDir) {
        this.rootDir = rootDir;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public List<UnitProperty> getProperties() {
        return properties;
    }

    public void setProperties(List<UnitProperty> properties) {
        this.properties = properties;
    }
}
